package cn.shuo.app.db.model;

import cn.shuo.app.db.BaseModel;
import lombok.Data;

/**
* Created by Mybatis Generator 2020/05/21
*/
@Data
public class AQuestion extends BaseModel {
    private Long id;

    private Long userId;

    private Long bookId;

    private Long boardId;

    private Long topicId;

    private Long childId;

    private Long cityId;

    private String title;

    private String status;

    private String docx;

    private Integer check;

    private Integer marrow;

    private Integer sticky;

    private String readingWeight;

    private Integer reading;

    private Integer like;

    private String voice;

    private String themePic;

    private Long gmtCreate;

    private Long gmtModified;

    private Integer commentsCount;

    private Integer viewCount;

    private Integer likeCount;

    private String tag;

    private Long gmtLatestComment;

    private Integer column2;

    private Integer permission;

    private String description;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AQuestion other = (AQuestion) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getBookId() == null ? other.getBookId() == null : this.getBookId().equals(other.getBookId()))
            && (this.getBoardId() == null ? other.getBoardId() == null : this.getBoardId().equals(other.getBoardId()))
            && (this.getTopicId() == null ? other.getTopicId() == null : this.getTopicId().equals(other.getTopicId()))
            && (this.getChildId() == null ? other.getChildId() == null : this.getChildId().equals(other.getChildId()))
            && (this.getCityId() == null ? other.getCityId() == null : this.getCityId().equals(other.getCityId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDocx() == null ? other.getDocx() == null : this.getDocx().equals(other.getDocx()))
            && (this.getCheck() == null ? other.getCheck() == null : this.getCheck().equals(other.getCheck()))
            && (this.getMarrow() == null ? other.getMarrow() == null : this.getMarrow().equals(other.getMarrow()))
            && (this.getSticky() == null ? other.getSticky() == null : this.getSticky().equals(other.getSticky()))
            && (this.getReadingWeight() == null ? other.getReadingWeight() == null : this.getReadingWeight().equals(other.getReadingWeight()))
            && (this.getReading() == null ? other.getReading() == null : this.getReading().equals(other.getReading()))
            && (this.getLike() == null ? other.getLike() == null : this.getLike().equals(other.getLike()))
            && (this.getVoice() == null ? other.getVoice() == null : this.getVoice().equals(other.getVoice()))
            && (this.getThemePic() == null ? other.getThemePic() == null : this.getThemePic().equals(other.getThemePic()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
            && (this.getCommentsCount() == null ? other.getCommentsCount() == null : this.getCommentsCount().equals(other.getCommentsCount()))
            && (this.getViewCount() == null ? other.getViewCount() == null : this.getViewCount().equals(other.getViewCount()))
            && (this.getLikeCount() == null ? other.getLikeCount() == null : this.getLikeCount().equals(other.getLikeCount()))
            && (this.getTag() == null ? other.getTag() == null : this.getTag().equals(other.getTag()))
            && (this.getGmtLatestComment() == null ? other.getGmtLatestComment() == null : this.getGmtLatestComment().equals(other.getGmtLatestComment()))
            && (this.getColumn2() == null ? other.getColumn2() == null : this.getColumn2().equals(other.getColumn2()))
            && (this.getPermission() == null ? other.getPermission() == null : this.getPermission().equals(other.getPermission()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getBookId() == null) ? 0 : getBookId().hashCode());
        result = prime * result + ((getBoardId() == null) ? 0 : getBoardId().hashCode());
        result = prime * result + ((getTopicId() == null) ? 0 : getTopicId().hashCode());
        result = prime * result + ((getChildId() == null) ? 0 : getChildId().hashCode());
        result = prime * result + ((getCityId() == null) ? 0 : getCityId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDocx() == null) ? 0 : getDocx().hashCode());
        result = prime * result + ((getCheck() == null) ? 0 : getCheck().hashCode());
        result = prime * result + ((getMarrow() == null) ? 0 : getMarrow().hashCode());
        result = prime * result + ((getSticky() == null) ? 0 : getSticky().hashCode());
        result = prime * result + ((getReadingWeight() == null) ? 0 : getReadingWeight().hashCode());
        result = prime * result + ((getReading() == null) ? 0 : getReading().hashCode());
        result = prime * result + ((getLike() == null) ? 0 : getLike().hashCode());
        result = prime * result + ((getVoice() == null) ? 0 : getVoice().hashCode());
        result = prime * result + ((getThemePic() == null) ? 0 : getThemePic().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getCommentsCount() == null) ? 0 : getCommentsCount().hashCode());
        result = prime * result + ((getViewCount() == null) ? 0 : getViewCount().hashCode());
        result = prime * result + ((getLikeCount() == null) ? 0 : getLikeCount().hashCode());
        result = prime * result + ((getTag() == null) ? 0 : getTag().hashCode());
        result = prime * result + ((getGmtLatestComment() == null) ? 0 : getGmtLatestComment().hashCode());
        result = prime * result + ((getColumn2() == null) ? 0 : getColumn2().hashCode());
        result = prime * result + ((getPermission() == null) ? 0 : getPermission().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        return result;
    }
}